# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=iotop-c
pkgver=1.22
pkgrel=0
pkgdesc="simple top-like I/O monitor (implemented in C)"
url="https://github.com/Tomas-M/iotop"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no tests
depends="!iotop"
makedepends="linux-headers ncurses-dev coreutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Tomas-M/iotop/archive/v$pkgver.tar.gz"
builddir="$srcdir/iotop-$pkgver"

build() {
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
863f4e602e13c91302ef3e2de7bf917418cb389a427fd0a6579c31a991d628112d0b479a2287944c4b3f3b5c4b13815ec57d30687fc48de7b782586e56ee62d8  iotop-c-1.22.tar.gz
"
